/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn;

/**
 * <p>Project: jse2204 - BankActionEnum
 * <p>Powered by webrx On 2022-10-11 09:36:56
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public enum BankActionEnum {
    OPEN(1), SAVE(2), READ(3), SEND(4), LOAD(5), SHOW(6);

    private int i;

    BankActionEnum(int i) {
        this.i = i;
    }

    public int read(){
        return this.i;
    }

    public static BankActionEnum from(int i){
        for(BankActionEnum e : BankActionEnum.values()){
            if(e.i == i){
                return e;
            }
        }

        return null;
    }


}
